package com.jijuxie.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jijuxie.system.domain.SysRoleMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {

    @Select("select menu_id from sys_role_menu where role_id = #{roleId}")
    List<Long> selectMenuIdsByRoleId(Long roleId);

    int insertBatch(List<SysRoleMenu> list);
}
